package afcp.alumni.service;

/**
 * Service Factory
 * 
 * @author Antoine
 * 
 */
public class SF {
	
	private static MemberService member = null;
	private static LoginService login = null;
	private static DefectService defect = null;
	private static UploadServiceBlobstore upload = null;

	public static MemberService member() {
		if (member == null) {
			member = new MemberService();
		}
		return member;
	}

	public static LoginService login() {
		if (login == null) {
			login = new LoginService();
		}
		return login;
	}

	public static DefectService defect() {
		if (defect == null) {
			defect = new DefectService();
		}
		return defect;
	}

	public static UploadService upload(String url) {
		if (upload == null) {
			upload = new UploadServiceBlobstore(url);
		}
		return upload;
	}
	
}
